﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.WebControls;

namespace ISolutions.SharePoint.Mui.Controls
{
    public class TextField : TabbedMuiControl
    {
        /// <summary>
        /// Creates a TextField control.
        /// </summary>
        /// <returns>
        /// A brand-new and shining <see cref="TextField"/> instance.
        /// </returns>
        protected override FieldMetadata CreateEditControl()
        {
            Microsoft.SharePoint.WebControls.TextField textfield = new Microsoft.SharePoint.WebControls.TextField();
            textfield.DisableInputFieldLabel = DisableInputFieldLabel;
            return textfield;
        }

        /// <summary>
        /// Gets or sets a value indicating whether to not show the input field label.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if the input field label should be hidden; otherwise, <c>false</c>.
        /// </value>
        public bool DisableInputFieldLabel
        {
            get;
            set;
        }
    }
}
